
<%@ page import="br.edu.ufam.avaliacao.Dimensao" %>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="layout" content="main" />
  <g:set var="entityName" value="${message(code: 'dimensao.label', default: 'Dimensao')}" />
  <title><g:message code="default.list.label" args="[entityName]" /></title>
</head>
<body>
  <div class="nav" >
    <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="Início"/></a></span>
  </div>
  <div class="body"  style="width: 1000px">
    <h1><g:message code="Lista de Dimensões" /></h1>
    <g:if test="${flash.message}">
      <div class="message">${flash.message}</div>
    </g:if>
    <div class="list">
      <table>
        <thead>
          <tr>
        <g:sortableColumn property="ordem" title="${message(code: 'dimensao.ordem.label', default: 'Ordem')}" />

        <g:sortableColumn style="width: 265px" property="titulo" title="${message(code: 'dimensao.titulo.label', default: 'Titulo')}" />

        <g:sortableColumn property="descricao" title="${message(code: 'dimensao.descricao.label', default: 'Descricao')}" />

        </tr>
        </thead>
        <tbody>
        <g:each in="${dimensaoInstanceList}" status="i" var="dimensaoInstance">
          <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

          <td><g:link action="show" id="${dimensaoInstance.id}">${fieldValue(bean: dimensaoInstance, field: "ordem")}</g:link></td>

          <td><g:link action="show" id="${dimensaoInstance.id}">${fieldValue(bean: dimensaoInstance, field: "titulo")}</g:link></td>

          <td>${fieldValue(bean: dimensaoInstance, field: "descricao")}</td>



          </tr>
        </g:each>
        </tbody>
      </table>
    </div>
    <div class="paginateButtons">
      <g:paginate total="${dimensaoInstanceTotal}" />
    </div>
  </div>
</body>
</html>
